package exception;

import java.io.FileNotFoundException;

public class ThrowDemo {
    public static void main(String[] args) throws FileNotFoundException, IllegalAgeException {
        Student zs = new Student();
            zs.setAge(-100);
            System.out.println("此人的年龄为:" + zs.getAge());

        }
    }

